/**
 * output package name
 */
package com.kingdee.eas.minghua.contract.client;

import java.awt.event.*;
import org.apache.log4j.Logger;

import com.kingdee.bos.metadata.entity.FilterInfo;
import com.kingdee.bos.metadata.entity.FilterItemInfo;
import com.kingdee.bos.metadata.query.util.CompareType;
import com.kingdee.bos.ui.face.CoreUIObject;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.eas.framework.*;

/**
 * output class name
 */
public class RelevantagreeFilterUI extends AbstractRelevantagreeFilterUI
{
    private static final Logger logger = CoreUIObject.getLogger(RelevantagreeFilterUI.class);
    
    /**
     * output class constructor
     */
    public RelevantagreeFilterUI() throws Exception
    {
        super();
    }
    public FilterInfo getFilterInfo(){
    	FilterInfo filter=new FilterInfo();
    	if(htName.getText()!=null&&!"".equals(htName.getText())){
    		filter.getFilterItems().add(new FilterItemInfo("HTname",htName.getText(),CompareType.EQUALS));
    	}
    	if(xyName.getText()!=null&&!"".equals(xyName.getText())){
    		filter.getFilterItems().add(new FilterItemInfo("xyName",xyName.getText(),CompareType.EQUALS));
    	}
    	if(htNumber.getText()!=null&&!"".equals(htNumber.getText())){
    		filter.getFilterItems().add(new FilterItemInfo("htNumber",htNumber.getText(),CompareType.EQUALS));
    	}
    	if(htDate.getValue()!=null){
    		filter.getFilterItems().add(new FilterItemInfo("bizDate",htDate.getValue(),CompareType.EQUALS));
    	}
        return filter;
    }
    /**
     * output storeFields method
     */
    public void storeFields()
    {
        super.storeFields();
    }

}